From: Philip Withnall Date: Fri, 18 Jan 2019 13:17:21 +0000 (+0000) Subject: search: Initialise searchInProgress when search providers are registered X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~897^2^2~138 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=809d92129b5856b081dbf08632daa4614669e82c;p=gnome-shell.git search: Initialise searchInProgress when search providers are registered This avoids the following warning sometimes happening later: JS WARNING: [resource:///org/gnome/shell/ui/search.js 701]: reference to undefined property "searchInProgress" Signed-off-by: Philip Withnall https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/357 --- diff --git a/js/ui/search.js b/js/ui/search.js index 4adf50217..16bd8cf20 100644 --- a/js/ui/search.js +++ b/js/ui/search.js @@ -473,6 +473,7 @@ var SearchResults = new Lang.Class({ }, _registerProvider(provider) { + provider.searchInProgress = false; this._providers.push(provider); this._ensureProviderDisplay(provider); },